package com.lichuang.fruitvarietysm.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author kangkang
 * @since 2019-06-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Shoppingcart对象", description = "购物车")
public class Shoppingcart implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物车的id")
    @TableId("cartID")
    private Integer cartID;

    @ApiModelProperty(value = "商品id")
    @TableField("goodsId")
    private Integer goodsId;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private Integer userId;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "添加商品到购物车的时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "该商品的总价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "商品的skuId")
    @TableField("skuId")
    private Integer skuId;


}
